#pragma once

#include <rtl/base.h>

#define MMC_BLOCK_SIZE 512

N1_STATUS MtkMmcInit(INT ControllerIndex);
N1_STATUS MtkMmcRead(INT ControllerIndex, PVOID Buffer, SIZE NumBlocks, UINT32 BlockOffset);
N1_STATUS MtkMmcWrite(INT ControllerIndex, PVOID Buffer, SIZE NumBlocks, UINT32 BlockOffset);

UINT32 MtkGetMmcControllerCount();